package utils

import (
	"encoding/base64"
)

func Base64Decode(encodeString string) ([]byte, error) {
	decodeBytes, err := base64.StdEncoding.DecodeString(encodeString)
	if err != nil {
		return decodeBytes, err
	}
	return decodeBytes, nil
}

func Base64Encode(input []byte) string {
	uEnc := base64.StdEncoding.EncodeToString(input)
	return uEnc
}
